define(function(require, exports, module) {
    var ALL = require("../../common/all"),
        CONFIG = ALL.CONFIG,
        METHOD = ALL.METHOD,
        Init = ALL.Init;

    var _vm = Init.initVue({
        data : {
            id : null,
            list : [],
            cur : 1,
            all : 0,
            schFlag : false,
            search : {
                team_id : null,
                no : '',
                date_start : METHOD.curDate(6),
                date_end: METHOD.curDate(),
            }
        },
        methods: {
            reSearch : function() {
                this.schFlag = true;
                this.getData(1);
            },
            reset : function() {
                this.schFlag = false;
                this.search.no = '';
                this.search.date_start = METHOD.curDate(6);
                this.search.date_end = METHOD.curDate();
            },
            getData : function(n) {
                _vm.search.page = n;
                _vm.search.num = 10;
                METHOD.loading.show();
                METHOD.ajax("team/member/list",_vm.search).done(function(json){
                    METHOD.loading.hide();
                    _vm.list = json.data;
                    _vm.all = json.page.pages;
                }).fail(function(){
                    METHOD.loading.hide();
                });
            }
        }
    });

    _vm.search.team_id = METHOD.getQueryParms("id") || null;

    _vm.getData(1);


});

